package com.li.dao;

import com.li.pojo.Work;
import com.li.pojo.WorkDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorkMapper {
    public WorkDto selectOne(int id);
    public List<WorkDto> selectWork(Map<String,Object> map);
    public long count(Map<String,Object> map);
    public int updateWork(@Param("work") Work work);
    public int addWork(@Param("work") Work work);
    public int deleteWork(List<Integer> ids);
    public int editWork(@Param("work") WorkDto work);
}
